package com.java1234.config;

import org.springframework.context.annotation.Configuration;
import org.springframework.web.servlet.config.annotation.ResourceHandlerRegistry;
import org.springframework.web.servlet.config.annotation.WebMvcConfigurer;

/*
* web项目配置类
* */
@Configuration
public class WebAppConfigurer implements WebMvcConfigurer {
    @Override
    public void addResourceHandlers(ResourceHandlerRegistry registry) {
        registry.addResourceHandler("/image/swiper/**").addResourceLocations("file:F:\\daima\\WX—dianshang\\img\\swiperImgs\\");
        registry.addResourceHandler("/image/bigType/**").addResourceLocations("file:F:\\daima\\WX—dianshang\\img\\bigTypeImgs\\");
        registry.addResourceHandler("/image/product/**").addResourceLocations("file:F:\\daima\\WX—dianshang\\img\\productImgs\\");
        registry.addResourceHandler("/image/productSwiperImgs/**").addResourceLocations("file:F:\\daima\\WX—dianshang\\img\\productSwiperImgs\\");
        registry.addResourceHandler("/image/productIntroImgs/**").addResourceLocations("file:F:\\daima\\WX—dianshang\\img\\productIntroImgs\\");
        registry.addResourceHandler("/image/productParaImgs/**").addResourceLocations("file:F:\\daima\\WX—dianshang\\img\\productParaImgs\\");
    }
}
